package aip.project.controller.bio.ListaCategorie;

import java.util.List;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import aip.project.model.ListaCategorie;
import aip.project.service.ListaCategorieService;

public class IndexController extends Controller {

    private ListaCategorieService service = new ListaCategorieService();
    @Override
    public Navigation run() throws Exception {
        
        List<ListaCategorie> lista = service.getListaCategorie();
        
        requestScope("lista", lista);
  
        return forward("index.jsp");
    }
}
